import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

# 坐标轴标签和标题
x = np.linspace(-1, 1, 1000)
y = (1 - x ** 2) ** 0.5
plt.plot(x, y, x, -y)
plt.axis('equal')
# 设置x轴的标签
plt.xlabel(xlabel='X', fontdict=dict(fontsize=20))
# 设置y轴的标签
plt.ylabel(ylabel='y=(1-x^2)^0.5',rotation=0)
"""
fontdict：字体
rotation：翻转
"""
# 设置标题
plt.title('The Circle',rotation=45)
plt.show()
